home *** CD-ROM | disk | FTP | other *** search
- <script language="JavaScript">
- <!-- This Script And Over 400 Others Found At --!>
- <!-- Java City 2000 http://www.jc2k.com --!>
-
- <!--
- //The page they go to if they get it right.
- var goodURL = "correct.html"
-
- alert("To access the following document, you must pass a "
- +"members-only, authorization test.\n \n At the appropriate "
- +"time, enter in your username and password.")
-
- var username = prompt("Enter in your username","")
- var password = prompt("Enter in your password","")
-
- if (username == null || password == null) {
-
- alert("Authenification failed!!!")
- history.back();
- }
-
- else {
- var combo = username + password
- var total = combo.toLowerCase()
-
- //This next line is where you can add usernames and passwords.
- if (total == "mynamemypass" || total == "name2pass2" || total == "josh1help1") {
-
- alert("You passed authenification! Come right in")
-
- location = goodURL
-
- }
-
-
- else {
-
- alert("Authenification failed!!!")
- history.back();
- }
- }
-
- //-->
- </script>
-